<div class="presses index">
	<h2><?php __('Presses');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('offered');?></th>
			<th><?php echo $this->Paginator->sort('sup_reference');?></th>
			<th><?php echo $this->Paginator->sort('serial_number');?></th>
			<th><?php echo $this->Paginator->sort('type');?></th>
			<th><?php echo $this->Paginator->sort('make');?></th>
			<th><?php echo $this->Paginator->sort('model');?></th>
			<th><?php echo $this->Paginator->sort('year');?></th>
			<th><?php echo $this->Paginator->sort('perfect');?></th>
			<th><?php echo $this->Paginator->sort('colour');?></th>
			<th><?php echo $this->Paginator->sort('description');?></th>
			<th><?php echo $this->Paginator->sort('paper_size1');?></th>
			<th><?php echo $this->Paginator->sort('paper_size2');?></th>
			<th><?php echo $this->Paginator->sort('photo1');?></th>
			<th><?php echo $this->Paginator->sort('photo2');?></th>
			<th><?php echo $this->Paginator->sort('photo3');?></th>
			<th><?php echo $this->Paginator->sort('photo4');?></th>
			<th><?php echo $this->Paginator->sort('video');?></th>
			<th><?php echo $this->Paginator->sort('status_id');?></th>
			<th><?php echo $this->Paginator->sort('in_stock');?></th>
			<th><?php echo $this->Paginator->sort('sold');?></th>
			<th><?php echo $this->Paginator->sort('buy_price');?></th>
			<th><?php echo $this->Paginator->sort('sell_price');?></th>
			<th><?php echo $this->Paginator->sort('sell_type_id');?></th>
			<th><?php echo $this->Paginator->sort('available_from_date');?></th>
			<th><?php echo $this->Paginator->sort('first_off_date');?></th>
			<th><?php echo $this->Paginator->sort('condition');?></th>
			<th><?php echo $this->Paginator->sort('location');?></th>
			<th><?php echo $this->Paginator->sort('active');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($presses as $press):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $press['Press']['id']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['name']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['offered']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['sup_reference']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['serial_number']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($press['PressType']['name'], array('controller' => 'press_types', 'action' => 'view', $press['PressType']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($press['PressMake']['name'], array('controller' => 'press_makes', 'action' => 'view', $press['PressMake']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($press['PressModel']['name'], array('controller' => 'press_models', 'action' => 'view', $press['PressModel']['id'])); ?>
		</td>
		<td><?php echo $press['Press']['year']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['perfect']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['colour']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['description']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['paper_size1']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['paper_size2']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['photo1']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['photo2']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['photo3']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['photo4']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['video']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($press['Status']['name'], array('controller' => 'statuses', 'action' => 'view', $press['Status']['id'])); ?>
		</td>
		<td><?php echo $press['Press']['in_stock']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['sold']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['buy_price']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['sell_price']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($press['SellType']['name'], array('controller' => 'sell_types', 'action' => 'view', $press['SellType']['id'])); ?>
		</td>
		<td><?php echo $press['Press']['available_from_date']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['first_off_date']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['condition']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($press['Country']['name'], array('controller' => 'countries', 'action' => 'view', $press['Country']['id'])); ?>
		</td>
		<td><?php echo $press['Press']['active']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['created']; ?>&nbsp;</td>
		<td><?php echo $press['Press']['modified']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $press['Press']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $press['Press']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $press['Press']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $press['Press']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Press', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Statuses', true), array('controller' => 'statuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Status', true), array('controller' => 'statuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Press Makes', true), array('controller' => 'press_makes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Press Make', true), array('controller' => 'press_makes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Press Models', true), array('controller' => 'press_models', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Press Model', true), array('controller' => 'press_models', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Press Types', true), array('controller' => 'press_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Press Type', true), array('controller' => 'press_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sell Types', true), array('controller' => 'sell_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sell Type', true), array('controller' => 'sell_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Countries', true), array('controller' => 'countries', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Country', true), array('controller' => 'countries', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Auctions', true), array('controller' => 'auctions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Auction', true), array('controller' => 'auctions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Offers', true), array('controller' => 'offers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Offer', true), array('controller' => 'offers', 'action' => 'add')); ?> </li>
	</ul>
</div>